package com.wefiesta.app;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.AdapterView.OnItemClickListener;

/*
public class EventsActivity extends ArrayAdapter<String>{
	
	private final Activity context;
	private final String[] web;
	private final Integer[] imageId;
	
	public EventsActivity(Activity context, String[] web, Integer[] imageId){
	
		super(context, R.layout.event_list_row, web);
		this.context = context;
		this.web = web;
		this.imageId = imageId;
	}
	
	@Override
	public View getView(int position, View view, ViewGroup parent){
		
		LayoutInflater inflater = context.getLayoutInflater();
		
		View rowView = inflater.inflate(R.layout.event_list_row, null, true);
		
		TextView txtPartyName = (TextView) rowView.findViewById(R.id.event_list_row_PartyName);
				
		return rowView;
	}
}
*/

public class EventsActivity extends Fragment implements OnItemClickListener {
	
	ListView listView;
	View vw_layout;
	@Override
	public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
		
	}
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

		if (container == null) {
			return null;
		}
		vw_layout = inflater.inflate(R.layout.activity_event_list, container, false);
		return vw_layout;
	}
}
